package com.entity.journal;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Chenql
 * date 2012-05-23
 * 个人模块--日志访问者记录实体类
 *
 */

@Entity
@Table(name = "t_journal_visitor")
public class JournalVisitor implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 287542867972702866L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	/**
	 * 访问用户的ID
	 */
	private Integer visitorUserId;
	
	private Integer journalId;
	
	/**
	 * 日志的主人
	 */
	private Integer userId;
	
	public JournalVisitor()
	{
		super();
	}
	
	public JournalVisitor(Integer id,Integer visitorUserId,Integer journalId,Integer userId)
	{
		super();
		this.id = id;
		this.visitorUserId = visitorUserId;
		this.journalId = journalId;
		this.userId = userId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getVisitorUserId() {
		return visitorUserId;
	}

	public void setVisitorUserId(Integer visitorUserId) {
		this.visitorUserId = visitorUserId;
	}

	public Integer getJournalId() {
		return journalId;
	}

	public void setJournalId(Integer journalId) {
		this.journalId = journalId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
}
